<script setup lang="ts">
// See vite.config.ts for details about automatic imports
import { useRoute } from 'vue-router'
import {useHead} from '@unhead/vue'

const route = useRoute()

useHead({
  title: () => route.meta.title || 'AI会话',
  meta: [
    {
      property: 'og:title',
      content: () => route.meta.title,
    },
    {
      name: 'twitter:title',
      content: () => route.meta.title,
    },
  ],
})
</script>
<template>
  <div class="h-full w-full">
    <main>
      <router-view />
    </main>
  </div>
</template>
